<template>
  <div class="index">
    <!-- 设置路由的出口 -->
    <keep-alive include="home" exclude="MyView">
      <!-- <router-view v-if="$route.meta.iskeep"></router-view> -->
      <router-view></router-view>
    </keep-alive>
    <!-- <router-view v-if="!$route.meta.iskeep"></router-view> -->
    <!-- 底部的 tabbar -->
    <van-tabbar route>
      <van-tabbar-item to="/index/home" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item to="/index/ask" icon="chat-o">问答</van-tabbar-item>
      <van-tabbar-item to="/index/video" icon="video-o">视频</van-tabbar-item>
      <van-tabbar-item to="/index/my" icon="friends-o">我的</van-tabbar-item>
    </van-tabbar>
  </div>
</template>

<script>
export default {}
</script>

<style></style>
